#!/bin/bash
PROJECT_PATH=/home/gaoweii/Gitee/web_admin/terminal

#clean
rm -rf /home/gaoweii/Gitee/web_admin/logs/terminal/terminal.log
rm -rf $PROJECT_PATH/test/build
rm -rf $PROJECT_PATH/test/my_terminal_test.out

mkdir $PROJECT_PATH/test/build
cd $PROJECT_PATH/test/build
cmake ..
make
cp $PROJECT_PATH/test/build/my_terminal_test $PROJECT_PATH/test/my_terminal_test.out

chmod +x $PROJECT_PATH/test/my_terminal_test.out